package com.acme.bankapp.service.bank;

public class OverDraftLimitExceededException extends NotEnoughFundsException {

	private static final long serialVersionUID = 3290480779835652452L;
	private double maximumAmountToWidthdraw;

	public OverDraftLimitExceededException() {
		System.out.println("OverDraftLimitExceeded");
	}

	public OverDraftLimitExceededException(String s) {
		super(s);
	}

	public OverDraftLimitExceededException(double maximumAmountToWidthdraw) {
		this.maximumAmountToWidthdraw = maximumAmountToWidthdraw;
	}

	public String toString() {
		return "Maximum amount to widthdraw is " + maximumAmountToWidthdraw;
	}
}
